<%--
  Created by IntelliJ IDEA.
  User: Mr_C
  Date: 2017/3/7
  Time: 13:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/views/common/taglib.jsp"%>
<html>
<head>
    <title>${title}</title>
    <script language="javascript" type="text/javascript" src="http://libs.baidu.com/jquery/2.0.3/jquery.min.js"></script>
    <script language="javascript">
        function mapOnClick(e){
            e = e || window.event;
            var imgId ='#'+ $(e.target).attr('id');
            var currentWidth = $(imgId).width();
            var currentHeight = $(imgId).height();
            var offsetX = e.pageX - $(imgId).offset().left;
            var offsetY = e.pageY - $(imgId).offset().top;
            var x = offsetX / currentWidth;
            var y = offsetY / currentHeight;
            alert(x + ':' + y)
        }
    </script>

    <%--<script type="text/javascript">--%>
        <%--//跳转到我的作品详情--%>
        <%--function jumpMywork(work_id){--%>
            <%--location.href='${ctx}/jumpDetail?work_id='+work_id;--%>
        <%--}--%>

        <%--//跳转影音传情--%>
        <%--function preUploadMessage(){--%>
            <%--location.href = "${ctx}/preUploadMessage";--%>
        <%--}--%>

        <%--//返回函数--%>
        <%--function goback(){--%>
            <%--history.back();--%>
        <%--}--%>

        <%--//删除一个作品--%>
        <%--function deletework(){--%>
            <%--if(windows.confirm("确认删除该作品吗？")){--%>
                <%--$.ajax({--%>
                    <%--url: '${ctx}/deleteSelfWork',--%>
                    <%--type: 'POST',--%>
                    <%--data:{--%>
                        <%--work_id:'${work_id}',--%>
                    <%--},--%>
                    <%--dataType: 'json',--%>
                    <%--success: function(workresp){--%>
                        <%--alert(workresp.tips);--%>
                    <%--}--%>
                <%--});--%>
            <%--}--%>
        <%--}--%>
    <%--</script>--%>
</head>
<body>
<img id="monitor_map" src="${ctx}/images/pig.jpg" class="col-md-12" style="margin:0;padding: 0" onclick="mapOnClick(event)"/>
</body>
</html>
